package com.lnking.lnkingplace.mapper;


import com.lnking.lnkingplace.model.dto.rectification.RectificationDetailDto;
import com.lnking.lnkingplace.model.entity.Inspect;
import com.lnking.lnkingplace.model.entity.Rectification;
import com.lnking.starter.mybatis.mapper.CustomBaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sn
 * @since 2022-08-19
 */
public interface RectificationMapper extends CustomBaseMapper<Rectification> {

    RectificationDetailDto getDetailById(String id);

    List<Inspect> getFail(String id);

    Rectification getReview(String placeId, String inspectId);

    Rectification getLastRecord(String placeId, String inspectId);

    Rectification getRectification(String placeId, String inspectId, Integer sort);
}
